# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=ruby-mini_exiftool
_pkgname=mini_exiftool
pkgver=2.14.0
pkgrel=2
pkgdesc='This library is wrapper for the Exiftool command-line application (http://www.sno.phy.queensu.ca/~phil/exiftool).'
url='https://rubygems.org/gems/mini_exiftool'
arch=('any')
license=('custom:unknown')
depends=('ruby')
makedepends=('ruby-rdoc')
source=("https://rubygems.org/gems/$_pkgname-$pkgver.gem")
sha512sums=('0ec4e43c5e9ac7ab18e37957073500afc0bae4f910f03f02acf20d93861b3c4eaaac2ecea3355196a102c63408623916eeba1fb34bab08b7135c567a00fab428')
noextract=("$_pkgname-$pkgver.gem")

package() {
  _gemdir=$(ruby -e 'puts Gem.default_dir')

  if [[ $CARCH == arm* ]] ; then
    gem install --no-user-install --ignore-dependencies --no-rdoc --no-ri \
      -i "$pkgdir$_gemdir" "$_pkgname-$pkgver.gem"
  else
    gem install --no-user-install --ignore-dependencies -i "$pkgdir$_gemdir" \
      "$_pkgname-$pkgver.gem"
  fi
}

